package com.antt.cn.test04.activities;

import android.view.View;
import android.widget.ImageView;

import com.antt.cn.mylibary.base.BaseActivity;
import com.antt.cn.test04.R;
import com.antt.cn.test04.utils.ImageLoader;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends BaseActivity implements View.OnClickListener {
    private String url = "http://avatar.csdn.net/8/B/B/1_sinyu890807.jpg";

    @BindView(R.id.ac_main_image)
    ImageView image;

    @Override
    public int getLayoutId() {
        return R.layout.ac_main;
    }

    @Override
    public void initView() {
        ButterKnife.bind(this);

    }

    @Override
    public void initData() {

    }

    @Override
    public void initListener() {

    }


    @OnClick(R.id.ac_main_obt01)
    public void viewClick(View v) {
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.ac_main_obt01:
                ImageLoader.getImage(this, url, image);
                break;
            case R.id.ac_main_obt02:
                goTo(Demo01Activity.class);
                break;

        }
    }


}